﻿using System;
using System.Collections.Generic;
using System.Text;
using K3R.Data;
using System.Data.SqlClient;
using System.Data;

namespace ConsoleTest {
	class Program {
		static void Main(string[] args) {
			using (Connection conn = new Connection("Server=192.168.50.30;Database=TBS;Uid=inktbs;Pwd=tbscak3;", "feedback_results")) {
				SqlParameter records = conn.AddParameter("@records", SqlDbType.Int, ParameterDirection.Output);
				SqlDataReader dr = conn.ExecuteReader();

				while (dr.Read()) {
					Console.WriteLine(dr["title"].ToString());
				}
				dr.Close();
				Console.WriteLine("*{0}*", records.Value);
			}
			Console.ReadLine();
		}
	}
}